﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head><link rel="stylesheet" href="${ctx}/common/common.css">
    <title>Title</title>
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/style/admin.css" media="all">
    <script src="${ctx}/common/plugins/layuiadmin/layui/layui.js"></script>
    
    <script src="${ctx}/common/plugins/publicJs/publicJs.js"></script>
    <style type="text/css">
    	.rowtop{
    		padding: 10px
    	}
    	.valtop{
    		padding: 9px
    	}
    </style>
</head>
<body>
<form class="layui-form" action="${ctx}/semiFinishedGoods/${action}">
   <input type="hidden" name="id" value="${entity.id}" />
    <div class="layui-row rowtop" style="margin-top: 20px;">
    	<div class="layui-col-md5">
	        <label class="layui-form-label">产品名称</label>
	        <div class="layui-input-block valtop">
	            ${entity.name}
	        </div>
    	</div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">规格</label>
	        <div class="layui-input-block valtop">
	            ${entity.specifications}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
    	<div class="layui-col-md5">
	        <label class="layui-form-label">产品类型</label>
	        <div class="layui-input-block valtop">
	            ${classifyEntity.name}
	        </div>
	    </div>
    	<div class="layui-col-md5">
	        <label class="layui-form-label">生产厂家</label>
	        <div class="layui-input-block valtop">
	            ${entity.manufacturer}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
    	<div class="layui-col-md5">
	        <label class="layui-form-label">生产许可编号</label>
	        <div class="layui-input-block valtop">
	            ${entity.p_license}
	        </div>
	    </div>
    	<div class="layui-col-md5">
	        <label class="layui-form-label">证照编号</label>
	        <div class="layui-input-block valtop">
	            ${entity.code}
	        </div>
	    </div>
	</div>
	<div class="layui-row rowtop">
		<div class="layui-col-md5">
	        <label class="layui-form-label">有效期</label>
	        <div class="layui-input-block valtop">
	            ${entity.expiry_date}天
	        </div>
	    </div>
	     <div class="layui-col-md5">
	        <label class="layui-form-label">执行标准</label>
	        <div class="layui-input-block valtop">
	            ${entity.perf_standard}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">单件容量</label>
	        <div class="layui-input-block valtop">
	            ${entity.single_capacity}
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">单件重量</label>
	        <div class="layui-input-block valtop">
	            ${entity.single_weight}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
    	<div class="layui-col-md5">
	        <label class="layui-form-label">单件体积</label>
	        <div class="layui-input-block valtop">
	            ${entity.single_volume}
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">单位</label>
	        <div class="layui-input-block valtop">
	            ${entity.unit}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
		<div class="layui-form-item layui-upload">
		  <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
		    	半成品图片：
		    <div class="layui-upload-list" id="demo2">
		    <c:forEach items="${imgList}" var="img">
		    	<div id="delDiv">
		    		<img style="width: 100px;height: 100px;" src="${ctx}${img.pictureImgT}" class="layui-upload-img">
		    	</div>
		    </c:forEach>
		    </div>
		 </blockquote>
		</div>
	</div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" id="rollback" class="layui-btn layui-btn-primary">返回</button>
        </div>
    </div>
</form>
<script>
document.getElementById("rollback").addEventListener("click",function(){
    window.history.back();
})
//Demo
layui.use('form', function(){
    var form = layui.form;

    //监听提交
    form.on('submit(formDemo)', function(data){
       layer.load(1, {
            shade: [0.1,'#fff'] //0.1透明度的白色背景
        });
        $("#formBtn").attr("disabled",true);
    });
});
</script>
</body>
</html>



